home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 1977 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.4 KB

  1. Path: news.glo.be!news
  2. From: yanahond@glo.be (Thomas De Vos)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Allocate > 64k
  5. Date: Wed, 10 Jan 1996 05:08:15 GMT
  6. Organization: Globe internetworking
  7. Message-ID: <4dbnvi$mr7@moon.glo.be>
  8. References: <4cvq9d$7g9@dub-news-svc-3.compuserve.com>
  9. NNTP-Posting-Host: iphome6213.glo.be
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. <75151.03563@compuserve.com> wrote:
  13.  
  14.  
  15. > jsmithjr@ix.netcom.com(James E. Smith, Jr. ) writes:
  16. >>Have Borlandc. Can I allocate arrays larger than 64K? I have to use 16
  17. >>bit compiler to deliver product for Air Force systems. Or, do I have to
  18. >>build memory manger to handle multiple segments? 
  19.  
  20. >I haven't used BC in a while, but in Microsoft this is what you do - I'm sure
  21. >BC has something comparable.
  22.  
  23. >1) use the _huge modifier for your pointers.
  24.  
  25. >char * _huge hugePtr;
  26.  
  27. >2) Use halloc( ... )
  28.  
  29.  
  30. >hugePtr= (char * _huge)halloc( ... );
  31.  
  32. >I'm not if these are the exact names of the function and modifier, but hopefully it
  33. >will get you looking in the right direction.  Also - check the documentation - I'm 
  34. >not sure, but you might have to compile in huge model to get this to work.
  35.  
  36. >Hope this helps.
  37. >Tom Keane
  38. >75151,03563@compuserve.com
  39.  
  40.  
  41. I don't know so much about the halloc function, what I know is
  42. that you can refered a 64kb block in your array .
  43. If you have an array of 64kb then you can set a pointer to an another
  44. 64kb block and so on.
  45.  
  46.  
  47.